package com.com.hefei.wdp.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
//@EnableDiscoveryClient 用户获取Eureka服务器上注册的服务的基本信息，
//在contorller中注入DiscoveryClient discoveryClient来获取注册的服务信息
@EnableDiscoveryClient
@EnableEurekaClient //eureka客户端
@SpringBootApplication
public class ProducerRibbonApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProducerRibbonApplication.class, args);
    }

}
